<?php


class Index extends Base_Controller{
	
	public function __construct()
	{
		parent::__construct();
	}
	
	public function Index()
	{
		$user['UID'] = 2;
		$user['EMAIL'] = 'test2@163.com';
		$user['TOKEN'] = '0aef3b262c6ee23654841b8df040c5fc36466490';
		$this->load->library('auth');
		//$data['user'] = $this->auth->check_login();
		$data['user'] = $this->auth->check_user($user);
		$this->load->view('index',$data);
	}
	
	public function outputjson()
	{
		$name = $this->input->post('name');
		$json = $this->input->post('json');
		$tmp['name'] = $name;
		$tmp['json'] = $json;
		echo json_encode($tmp);
	}
	
}